//巡逻队
private _pos = _this select 0;
private _number = _this select 1;
private _list = _this select 2;
private _pos2 = _this select 3;
private _unit = objNull;

_number = _number * Param_EnemySpawnNum;

//寻找附近的路
private _roads = [];
_roads = _pos nearRoads 20;

if(count _roads > 0) then
{
	_pos = getPos (selectRandom _roads) ;
};

private _group = grpNull;
if(!surfaceIsWater _pos) then
{
	_group = createGroup west;

	for "_i" from 1 to _number do
	{
		_unit = _group createUnit [selectRandom _list, _pos, [], 100, "NONE"];	
		[_unit] call fn_initUnit;
	};
	
	
	//_group spawn fn_squadAI;	
	//_group enableDynamicSimulation true;
	
	if(Param_Debug == 1) then
	{
		_group addGroupIcon ["b_recon",[0,0]];
		_group setGroupIconParams [[0,0,1,1],"巡逻队",1,true];
	};

};
_group

